

#ifndef __FILE_LIST_H__
#define __FILE_LIST_H__


#include "debug.h"
#include "include_com.h"
#include "list.h"



typedef enum
{
    MEDIA_TYPE_UNKNOWN = 0,
		
    MEDIA_TYPE_VIDEO,
    
    MEDIA_TYPE_PHOTO,

    MEDIA_TYPE_MUSIC,

}media_type_e;


#define MAX_FILE_NUMBER	(100000)

#define MAX_FILE_PATH_SIZE	(1024)

typedef struct list_elem {

	slist_t		    elem_tail;
	unsigned int    elem_type; //0 -fiel; 1 - dir
			char*   elem_name;
			char*   elem_dir;
			
}list_elem_t;




typedef struct file_list {

	unsigned int     list_elem_num;
	unsigned int	 list_elem_type;
	unsigned int	 list_search_flag;

			char     list_save_path[1024];
			char*	 list_dir;

			cJSON *	 list_r_para ;
			cJSON *  list_f_para ;

	pthread_t        list_thread;

	slist_t 	    *list_elem_head;

}file_list_t;







#endif

